package com.wang.controller;

import com.wang.dao.Controller;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class FirstController implements Controller {
    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response){
        ModelAndView mav=new ModelAndView();
        mav.addObject("msg","这是我第一个springmvc程序");
        mav.setViewName("/WEB-INF/jsp/first.jsp");
        return mav;
    }
}
